<%@page import="com.tjsinfo.tjsoa.check.vo.TCheckMain"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
List<TCheckMain> list=(List)request.getAttribute("checkmainlist");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'checkmainlisttwo.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css"
	href="<%=basePath%>/ajaxFramework/jquery-easyui-1.3.2/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>/ajaxFramework/jquery-easyui-1.3.2/themes/icon.css" />
<script type="text/javascript"
	src="<%=basePath%>/ajaxFramework/jquery-easyui-1.3.2/jquery-1.8.0.min.js"></script>
<script type="text/javascript"
	src="<%=basePath%>/ajaxFramework/jquery-easyui-1.3.2/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="<%=basePath%>ajaxFramework/jquery-easyui-1.3.2/locale/easyui-lang-zh_CN.js"></script>
	
	<script type="text/javascript">
		function deletefrom(id){
			$.messager.confirm('系统信息','是否删除?',function(r){
				if (r){
					$("input[name=id]").val(id);
					$("form[name=deleteform]").submit();
				}
			});
		}
	</script>
  </head>
  
  <body>
    <table title="考核测评表" iconCls="icon-save" id="tt" class="easyui-datagrid" fitColumns="true"
    toolbar="#tb" style="width:auto;height:500px;">
	<thead>
		<tr>
			<th field="name1" width="100">标题</th>
			<th field="name2" width="100">操作</th>
			
		</tr>                          
	</thead>                           
	<tbody>  
		<%
			 for(TCheckMain checkMain:list){
			 	String title=checkMain.getTitle();
		%>
			<tr>                           
				<td><%=title %></td>            
				<td>
					<%
						if("领导班子".equals(checkMain.getType()))
						{
					%>
						<a href="<%=basePath %>tjsinfo/tjsoa/check/check.do?id=<%=checkMain.getId() %>&method=checkleadmain" >汇总</a>&nbsp;&nbsp;&nbsp;<a href="javascript:deletefrom(<%=checkMain.getId() %>)" >删除</a>
					<% 	
						}
						else
						{
					%>
						<a href="<%=basePath %>tjsinfo/tjsoa/check/check.do?id=<%=checkMain.getId() %>&method=checkEmployeemain" >汇总</a>&nbsp;&nbsp;&nbsp;<a href="javascript:deletefrom(<%=checkMain.getId() %>)" >删除</a>
					<% 
						
						}
					 %>	
				</td>            
			          
			</tr>  	
		<% 	 
			 }
		%>                          
		                        
	            
	</tbody>                           
</table>
<div id="tb">
	<a href="<%=basePath %>check/addleadcheckForm.jsp" class="easyui-linkbutton" iconCls="icon-add" plain="true" >添加领导班子考核测评表</a>
	<a href="<%=basePath %>check/addemployeecheckForm.jsp" class="easyui-linkbutton" iconCls="icon-add" plain="true" >添加领导干部考核测评表</a>
</div>
	<form action="<%=basePath %>tjsinfo/tjsoa/check/check.do?method=deleteleadmain" name="deleteform" method="post">
		<input type="hidden" value="" name="id"/>
	</form>
  </body>
</html>
